<%@ page import="com.ld.manageBook.service.UserService" %>
<%@ page import="com.ld.manageBook.service.impl.UserServiceImpl" %>
<%@ page import="com.ld.manageBook.bean.User" %><%--
  Created by IntelliJ IDEA.
  User: 刘邓
  Date: 2023-06-01
  Time: 20:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改用户信息</title>
</head>
<body>
    <%!
        private UserService userService = new UserServiceImpl();
    %>
<%
    User user = userService.getUserById(Integer.parseInt(request.getParameter("id")));
	session.setAttribute("currentUser",user);

%>
<form action="/home/changeUserOutcome.jsp" method="post">
    id:<input name="id" disabled placeholder="<%=user.getId()%>" value="<%=user.getId()%>"><br>
    用户名:<input name="username" placeholder="<%=user.getUsername()%>"><br>
    密码:<input name="password" placeholder="<%=user.getPassword()%>"><br>
    权限:<input name="status" placeholder="<%=user.getStatus()%>"><br>
    <input type="submit" value="提交">
</form>
</body>
</html>
